package com.zhuanzhuan.hero.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhuanzhuan.hero.user.entity.HeroUserGroupLabelRelation;

import java.util.List;

/**
 * dal Interface:HeroUserGroupLabelRelation
 *
 * @author hanjunjun
 * @date 2024-6-25
 */
public interface HeroUserGroupLabelRelationService extends IService<HeroUserGroupLabelRelation> {

    List<HeroUserGroupLabelRelation> listByUid(Long fromUid, Long toUid);

    /**
     * 关联标签批量查询
     *
     * @param fromUid
     * @param toUids
     * @return
     */
    List<HeroUserGroupLabelRelation> listByUids(Long fromUid, List<Long> toUids);

    /**
     * formUid给toUid打分组标签
     *
     * @param fromUid
     * @param toUid
     * @param relatedGrouplabelIds
     * @return void
     * @author hanjunjun
     * @date 2024/6/26
     **/
    void relateGroup(Long fromUid, Long toUid, List<Long> relatedGrouplabelIds);

    void delByUid(Long fromUid, Long toUid);

    void delByLabelIds(List<Long> labelIds);

    void delByIds(List<Long> delIds);
}